package com.zygh.policeasset.service;

import com.zygh.policeasset.mapper.AssetTransferMapper;
import com.zygh.policeasset.pojo.AssetTransfer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AssetTransferService {

    @Autowired
    AssetTransferMapper assetTransferMapper;

    public int add(Integer assetId,String assetType,String address,String transferRemark,Integer transferStatus,String transferDotime){
        return assetTransferMapper.add(assetId,assetType,address,transferRemark,transferStatus,transferDotime);
    }
    public int delete(Integer assetId,String assetType,Integer transferStatus){
        return assetTransferMapper.delete(assetId,assetType,transferStatus);
    }
    public List<AssetTransfer> findByIdAndType(Integer assetId,String assetType){
        return assetTransferMapper.findByIdAndType(assetId,assetType);

    }
}
